package com.service.Impl;

import com.dao.BookDao;
import com.dao.Impl.BookDaoImpl;
import com.service.BookService;

public class BookServiceImpl implements BookService {
    //通过接口创建对象
    private BookDao bookDao;

    public void setBookDao(BookDao bookDao) {
        this.bookDao = bookDao;
    }

    public void save() {
        System.out.println("book service save ...");
        bookDao.save();
    }
}
